package com.gs.xbinfomytest.entity;

import com.gitee.hengboy.mybatis.enhance.common.annotation.Column;
import com.gitee.hengboy.mybatis.enhance.common.annotation.Id;
import com.gitee.hengboy.mybatis.enhance.common.annotation.Table;
import com.gitee.hengboy.mybatis.enhance.common.enums.KeyGeneratorTypeEnum;
import lombok.Data;
import java.io.Serializable;

import java.sql.Timestamp;

/**
 * 在线用户记录
 * @author ApiBoot Mybatis Enhance Codegen
 */
@Data
@Table(name = "sys_user_online")
public class SysUserOnline implements java.io.Serializable {

    /**
     * 用户会话id
     */
    @Id(generatorType = KeyGeneratorTypeEnum.UUID)
    @Column(name = "sessionId")
    private String sessionid;
    /**
     * 登录账号
     */
    @Column(name = "login_name")
    private String loginName;
    /**
     * 部门名称
     */
    @Column(name = "dept_name")
    private String deptName;
    /**
     * 登录IP地址
     */
    @Column(name = "ipaddr")
    private String ipaddr;
    /**
     * 登录地点
     */
    @Column(name = "login_location")
    private String loginLocation;
    /**
     * 浏览器类型
     */
    @Column(name = "browser")
    private String browser;
    /**
     * 操作系统
     */
    @Column(name = "os")
    private String os;
    /**
     * 在线状态on_line在线off_line离线
     */
    @Column(name = "status")
    private String status;
    /**
     * session创建时间
     */
    @Column(name = "start_timestamp")
    private Timestamp startTimestamp;
    /**
     * session最后访问时间
     */
    @Column(name = "last_access_time")
    private Timestamp lastAccessTime;
    /**
     * 超时时间，单位为分钟
     */
    @Column(name = "expire_time")
    private Integer expireTime = 0;
}

